import React, { useEffect, useState } from 'react'
import Header from './Header'
import List from './List'

import "./index.css" 

export default function App() {
const [result,setResult]=useState({isInit:true,isSearch:false,data:[]})

  return (
    <div className="container">
      <Header  setResult={setResult}/>
      <List result={result} />
    </div>
  )
}
